home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / Ecore_Job.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-01-09  |  723 b   |  46 lines

  1. #ifndef _ECORE_JOB_H
  2. #define _ECORE_JOB_H
  3.  
  4. #ifdef EAPI
  5. #undef EAPI
  6. #endif
  7. #ifdef WIN32
  8. # ifdef BUILDING_DLL
  9. #  define EAPI __declspec(dllexport)
  10. # else
  11. #  define EAPI __declspec(dllimport)
  12. # endif
  13. #else
  14. # ifdef __GNUC__
  15. #  if __GNUC__ >= 4
  16. #   define EAPI __attribute__ ((visibility("default")))
  17. #  else
  18. #   define EAPI
  19. #  endif
  20. # else
  21. #  define EAPI
  22. # endif
  23. #endif
  24.  
  25. /**
  26.  * @file
  27.  * @brief Functions for dealing with Ecore jobs.
  28.  */
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.    
  34. #ifndef _ECORE_JOB_PRIVATE_H
  35. typedef void Ecore_Job; /**< A job handle */
  36. #endif
  37.  
  38. EAPI Ecore_Job *ecore_job_add(void (*func) (void *data), const void *data);    
  39. EAPI void      *ecore_job_del(Ecore_Job *job);
  40.  
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44.  
  45. #endif
  46.